* lisp.h (make_gap_1): New prototype.
authorDmitry Antipov <dmantipov@yandex.ru>
Wed, 9 Jan 2013 13:50:22 +0000 (17:50 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Wed, 9 Jan 2013 13:50:22 +0000 (17:50 +0400)
commitc3425b71cb9d536ced0617617cdb0e3537961466
tree4a9deff93669f9a7f72843fdd2df82b75cfc6903
parent75b081a5f30983c1f98c7fbdac21070fb69cdce8
* lisp.h (make_gap_1): New prototype.
* buffer.h (GAP_BYTES_DFL, GAP_BYTES_MIN): New macros for the special
gap size values.
* editfns.c (Fbuffer_size): Rename from Fbufsize to fit the common
naming convention.
(syms_of_editfns): Adjust defsubr.  Drop commented-out obsolete code.
* insdel.c (make_gap_larger): Use GAP_BYTES_DFL.
(make_gap_smaller): Use GAP_BYTES_MIN.  Adjust comment.
(make_gap_1): New function to adjust the gap of any buffer.
* coding.c (coding_alloc_by_making_gap): Use it.
* buffer.c (compact_buffer): Likewise.  Use BUF_Z_BYTE, BUF_GAP_SIZE,
GAP_BYTES_DFL and GAP_BYTES_MIN.  Adjust comment.
src/ChangeLog
src/buffer.c
src/buffer.h
src/coding.c
src/editfns.c
src/insdel.c
src/lisp.h